package org.orz.story.pms.biz.web.provider;

import lombok.extern.slf4j.Slf4j;
import org.orz.cloud.common.result.ResultDTO;
import org.orz.story.pms.api.WorkbenchClient;
import org.orz.story.pms.api.model.dto.AccountWorkbenchListDto;
import org.orz.story.pms.api.model.vo.AccountWorkbenchListVo;
import org.orz.story.pms.biz.service.PmsWorkbenchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Slf4j
public class WorkbenchProvider implements WorkbenchClient {
    @Autowired
    private PmsWorkbenchService pmsWorkbenchService;

    @Override
    public ResultDTO<List<AccountWorkbenchListVo>> getAccountWorkbenchList(AccountWorkbenchListDto dto) {
        return ResultDTO.success(pmsWorkbenchService.getAccountWorkbenchList(dto));
    }
}
